-- GENERATED SPELL FOR [Rotting Forest-Rager] --


function spell0_22307(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15548,pUnit)
pUnit:RegisterEvent('Sorts_22307', 10283, 1)
end

function Sorts_22307(pUnit, Event)
local choix_sorts_22307 = math.random(0, 0)
if choix_sorts_22307 == 0 then
pUnit:RegisterEvent('spell0_22307', 1, 1)
end
end

function mob22307_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22307', math.random(1500, 3000), 1)
end

function mob22307_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22307_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22307_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22307, 1, 'mob22307_Action')
RegisterUnitEvent(22307, 2, 'mob22307_Leave')
RegisterUnitEvent(22307, 3, 'mob22307_Kill')
RegisterUnitEvent(22307, 4, 'mob22307_Die')
